package com.huidao.servlet.Goods;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.huidao.entity.GoodsType;
import com.huidao.service.GoodsTypeService;
import com.huidao.service.GoodsTypeServiceImp;


public class GetListGoodsTypeServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       

    public GetListGoodsTypeServlet() {

    }


	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		GoodsTypeService gtype = new GoodsTypeServiceImp();
		List<GoodsType> list= gtype.getListGoodsType();
		request.setAttribute("list", list);
		request.getRequestDispatcher("sellergoodsupdate.jsp").forward(request, response);
	}


	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		this.doGet(request, response);
	}

}
